package groovy
def examineClouser(clouser){
    clouser()
}
examineClouser(){
    println("in first")
    println("class is "+getClass().name)
    println("this is "+this+", super "+this.getClass().superclass.name)
    println("owner is "+ owner+", super " + owner.getClass().superclass.name)
    println("delegete is" +delegate+", super "+ delegate.getClass().superclass.name)
    examineClouser(){
        println("in second")
        println("class is "+getClass().name)
        println("this is "+this+", super "+this.getClass().superclass.name)
        println("owner is "+ owner+", super " + owner.getClass().superclass.name)
        println("delegete is" +delegate+", super "+ delegate.getClass().superclass.name)
    }
}

